<div class="grid_9">
<?php if($this->session->flashdata('type')): ?>
	<div class="<?php echo $this->session->flashdata('type')?>"><?php echo $this->session->flashdata('msg')?></div>
<?php endif; ?>

<div class="inner-border">
<h6>Enrollment Settings</h6>
<?php
	
	if(!empty($current_semester)){
		$semester_id = $current_semester->id;
		$semester_name = $current_semester->semester_name;	
	}
	else {
		$semester_id = '';
		$semester_name = '';
	}

	$form_attrib = array('name' => 'set_semster', 'class' => 'admin-form');
	$semesterData = array('name' => 'current_semester', 'readonly' => 'readonly', 'value' => $semester_name);
	$selectSemesterAttrib = array('name' => 'selectsemester', 'id' => 'selectsemester', 'content' => 'Select Semester', 'type' => 'button', 
	'onClick' => 'open_url(\''.site_url("admin/select_semester").'\')');

		
	
?>
<?php  echo form_open('admin/set_semester', $form_attrib) ?>
	<div class="input-block">
    <?php
		echo form_label('Current Semester :', 'currentsemester');
		echo form_input($semesterData);
		echo form_hidden('semester_id', $semester_id);
		echo form_button($selectSemesterAttrib);

	?>
    
    </div>

    <div class="input-block">
 		<?php echo form_submit('submit', 'Submit');?>
	</div>
</div>
</div>